{extend name="Layout/datagrid" /}
{block name="content_header"}        
<h1>
    结算帐号
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">结算申请</a></li>
    <li class="active">结算帐号</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">
            <div class="col-md-6">
                <!-- form start -->
                <form action="{:url('saveBankcardInfo')}" method="post" class="form-horizontal" style='margin-top:20px;'>
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">支付宝账号</label>
                            <div class="col-sm-9">
                                <input type="text" name="zhifubao" class="form-control input-sm" placeholder="支付宝账号" value="{$alipaydata.bankcardno}" required="required" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">银行卡开户行</label>
                            <div class="col-sm-9">
                                <input type="text" name="bankname" class="form-control input-sm" placeholder="银行卡开户行" value="{$bankcarddata.bankname}" required="required" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">银行卡名字</label>
                            <div class="col-sm-9">
                                <input type="text" name="bankcardholder" class="form-control input-sm" placeholder="银行卡名字" value="{$bankcarddata.bankcardholder}" required="required" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">银行卡卡号</label>
                            <div class="col-sm-9">
                                <input type="text" name="bankcardno" class="form-control input-sm" placeholder="银行卡卡号" value="{$bankcarddata.bankcardno}" required="required" />
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <a class="btn btn-default" href="{:url('settlementlist')}">取消</a>
                        <button type="submit" class="btn btn-primary pull-right">保存</button>
                    </div>
                    <!-- /.box-footer -->
                    <input type="hidden" name="bankcardid" value="{$bankcarddata.id}"/>
                    <input type="hidden" name="alipayid" value="{$alipaydata.id}"/>
                </form>
            </div>
        </div>
    </div>
    {/block}
    {block name="script_before"}
    <script>
        $('select[name="category_id"]').ajaxcombobox({first: {id: "", text: "选择货币"}});
    </script>
    {/block}